package visitorPattern.demo;

/**
 * @author： pang-yun
 * @date： 2022-01-05 11:33
 * 功能目的 ：用于
 */

public class Client {
    public static void main(String[] args) {
        ObjectStructure objectStructure = new ObjectStructure();

        objectStructure.attach(new Man());
        objectStructure.attach(new Women());

        Success success = new Success();
        objectStructure.display(success);

    }
}
